<?php $errors = pc_variable("errors"); ?>
<?php if($errors !== null && $errors->get(0) !== null) { ?>
<ul class="errors">
    <?php foreach($errors as $error) { ?>
    <li><?php pc_echo(pc_message($error->getKey(), $error->getParameters())); ?></li>
    <?php } ?>
</ul>
<?php } ?>